# Object
object := {
    "x-1": "a-phone",
    "x-2": "b-phone",
    "y-1": "a-pad"
}

object_has_phone if {
    some item in object
    endswith(item,"-phone")
}

obejct_has_phone_key_x if {
    some key,value in object
    endswith(value,"-phone")
    startswith(key,"x-")
}

object_has_key_x if {
    some key, _ in object
    startswith(key,"x-")
}

object_has_value_phone if {
    some _, value in object
    endswith(value,"-phone")
}
